home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Utilities Experience
/
The Utilities Experience - Volume 1.iso
/
software
/
demos
/
r-z
/
sbase4pro
/
ideas
/
ideas93.sbp
< prev
next >
Wrap
Text File
|
1995-07-10
|
1KB
|
77 lines
SBP
ÿ½ ideas93 create a word list and count for any text document
ÿÊÿfÿe
ÿ¡ÿJ("TempFile.SBF")ÿp
ÿ´ÿ"TempFile"
ÿ¾ÿ"TempFile"
ÿÿ¡
ÿ"TempFile"
ÿ|"Word;TXT IXD;40;1,1"
ÿ|"Instances;NMI;9999.;2,1"
ÿª"TempFile"
req$ÿ"*.SBT"
ÿÂ"Please select a text file for input","",13,req%,req$
ÿ¡req%ÿ0ÿreq$ÿ""ÿpÿ
ÿ
ÿ´req$ÿÿ¤
ÿØÿOÿB("*")
ÿ¤ÿcx$
x$ÿÿH(x$)
ÿ¡x$ÿ""ÿwendline
ÿ{x$
front%%ÿ1:back%%ÿ1
ÿ"TempFile"
ÿØback%%ÿ0
back%%ÿÿ?(front%%,x$," ")
ÿ¡back%%ÿfront%%ÿp
word$ÿÿ>(ÿ+(ÿåalpha(ÿ,(x$,front%%,(back%%ÿfront%%))),40))
ÿØÿ/(word$)ÿ0
ÿ¡ÿD(word$,Word.TempFile)ÿp
Instances ÿInstances ÿ1
ÿÌ,1
ÿ^
ÿ
Word ÿWord$
Instances ÿ1
ÿÌ,1
uniq%%ÿuniq%%ÿ1
ÿÿ¡
words%%ÿwords%%ÿ1:word$ÿ""
ÿÙ
front%%ÿback%%ÿ1
ÿÿ¡
ÿ¡back%%ÿfront%%ÿpfront%%ÿfront%%ÿ1
ÿÙ
endline:
ÿÙ
ÿÿ¤
ÿ¬ÿ
ÿ¬1,0,1,"Alphabetic"
ÿ¬2,0,1,"listing"
ÿ¬3,0,1,"of"
ÿ¬4,0,1,"all"
ÿ¬5,0,1,"words"
ÿ¬6,0,1,"used"
ÿ¬7,0,1,"in"
ÿ¬8,0,1,"file:"
ÿ¬9,0,1,ÿåroot(req$)
ÿ¬ÿ³a%,b%
ÿÁÿm"WordLen%"
ÿ}ÿÁ"WordLen%"
wl%ÿÿd("WordLen%")
ÿÿÁ
ÿÉÿ/(Word)ÿU"WordLen%"
ÿÊÿfÿ³
ÿÉÿ`:ÿÊÿn
ÿx%ÿ1ÿquniq%%ÿ1
ÿÉÿ±:ÿÎ
ÿ±x%
ÿ{"Number of words = ";ÿ(words%%,"999999")
ÿ{"Number of unique words = ";ÿ(uniq%%,"999999")
ÿ{"Average length of words = ";ÿ(wl%,"999.00");" characters."
ÿ{